package com.yanqu.road.logic.bussiness.cn.activity;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.yanqu.road.dao.impl.cn.activity.CnActivityDaoNotPoolImpl;
import com.yanqu.road.dao.impl.cn.activity.CnActivityGetPlatformIdDaoNotPoolImpl;

import java.util.Map;

/**
 * 国服铁人三项专用
 */
public class CnActivityBussiness {
    public static JSONArray getCnActivityRankList(String dbparam, int activityId, int conditionType) {
        return new CnActivityDaoNotPoolImpl(dbparam).getCnActivityRankList(activityId, conditionType);
    }

    public static Map<Long, String> getPlatformUserIdByUserId(String dbparam, String idList) {
        return new CnActivityGetPlatformIdDaoNotPoolImpl(dbparam).getPlatformUserIdByUserId(idList);
    }

    public static JSONObject getActivityScore(String dbparam, String platformUserId, int activityId, int conditionType) {
        return new CnActivityDaoNotPoolImpl(dbparam).getActivityScore(platformUserId, activityId, conditionType);
    }
}
